﻿@{
    MyPublic.IGettingUrl Urls = ViewBag.Urls as MyPublic.IGettingUrl;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title - 程序源论坛</title><!--ViewBag.Title为内容页面定义的标题名称-->
    @RenderSection("linkcss", false)
    <link rel="stylesheet" href="@Urls.ContentBootstrapUrl/bootstrap.min.css" />
    <style type="text/css">
        a, a:hover {
            text-decoration: none;
            color: #333;
        }
    </style>
</head>
<body>
    <div class="container-fluid">
        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">            
            <ol class="carousel-indicators">
                <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                <li data-target="#carousel-example-generic" data-slide-to="1"></li>
            </ol>
            <div class="carousel-inner" role="listbox">
                <div class="item active">
                    <img alt="First slide [2046x256]" class="img-responsive" src="@Urls.ContentImagesUrl/banner_01.png">
                    <div class="carousel-caption"><p class="text-primary"></p></div>
                </div>
                <div class="item">
                    <img alt="First slide [2046x256]" class="img-responsive" src="@Urls.ContentImagesUrl/banner_02.png">
                    <div class="carousel-caption"><p class="text-primary"></p></div>
                </div>
            </div>
        </div>
    </div>

    <div class="container-fluid">
        <nav class="navbar bg-success">
            <div class="container-fluid">
                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li>@Html.ActionLink("首页", "Index", "Home")</li>
                        <li>@Html.ActionLink("精华帖子", "Recommend", "Home")</li>
                    </ul>
                    <form action="/Home/Search" class="navbar-form navbar-left" role="search">
                        <div class="form-group">
                            <input type="text" name="text" class="form-control" placeholder="查找" value="@ViewBag.text">
                            <button type="submit" class="btn btn-default">搜索</button>
                        </div>
                    </form>
                    <ul class="nav navbar-nav navbar-right">
                        @{
                            BBSSite.MyPublic.LoginStatus IStatus = new BBSSite.MyPublic.LoginStatus();
                            if (IStatus.IsLogin)
                            {
                                <li><a href="javascript:void(0)" onclick="alert('会员')">会员:@IStatus.LoginStatusEntity.UserName</a></li>
                                <li>@Html.ActionLink("退出", "LoginOut", "Account")</li>
                            }
                            else
                            {
                                <li>
                                    <a href="/Account/Login/@Convert.ToBase64String(System.Text.Encoding.Default.GetBytes(Request.Url.AbsolutePath))">登录</a>
                                </li>
                            }
                        }
                    </ul>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>
    </div>
    @RenderBody()
    <footer class="footer bg-info">
        <div class="container">
            <div class="row">
                <div class="col-sm-12">
                    <span><a href="http://www.mingrisoft.com/">明日科技</a></span> |
                    <span>Copyright &copy; <a href="http://www.mingrisoft.com/">吉林省明日科技有限公司</a></span> |
                    <span>吉ICP备16003039号-1</span>
                    <span>站长QQ:80303857</span>
                </div>
                <br /><br />
            </div>
        </div>
    </footer>
    <script src="@Urls.ScriptUrl/jquery-3.1.1.min.js"></script>
    <script src="@Urls.ScriptUrl/bootstrap.min.js"></script>
</body>
</html>
@RenderSection("LastTag",false)